<?php
require_once('libs/MySmarty.php');
require_once('libs/DbAccess.php');
require_once('classes/entry_index.class.php');

$formPage = new entry_index();

$_action = isset($_REQUEST['actionType']) ? $_REQUEST['actionType'] : 'view';

switch($_action) {
    case 'del':
        $formPage->deleteEntry($_REQUEST); 
        break;
    case 'deleteVideo':
		if(isset($_REQUEST['checkVideoId']))
		{
		//print_r($_REQUEST["checkVideoId"]);
			$formPage->deleteVideo($_REQUEST);
		}
		else
		{
			$formPage->displayForm($_REQUEST); 
		} 
        break;
    case 'view':
    default:
        // viewing the guestbook
        $formPage->displayForm($_REQUEST);   
        break;   
}








?>